package com.car.doamin;

public class UserCar {
    private Integer id;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 汽车id
     */
    private Integer carId;

    public UserCar(Integer id, Integer userId, Integer carId) {
        this.id = id;
        this.userId = userId;
        this.carId = carId;
    }

    public UserCar() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getCarId() {
        return carId;
    }
    public void setCarId(Integer carId) {
        this.carId = carId;
    }
    @Override
    public String toString() {
        return "UserCar{" +
                "id=" + id +
                ", userId=" + userId +
                ", carId=" + carId +
                '}';
    }
}
